<link rel="stylesheet" type="text/css" href="/crm/quotation/css/view.css">
<link href="/crm/quotation/css/select2.css" rel="stylesheet" type="text/css"/>

<script type='text/javascript' src='./js/jquery.min.js' ></script>
<script type='text/javascript' src='./js/select2.js' ></script>
<script src="/crm/quotation/js/comment.js"></script>

<?php 
//$_REQUEST["id"] = "a4084668-d4c2-6d3c-5243c29873be";
require_once(dirname(__FILE__).'/quotation_view.class.php');
$data = new quotation_view($_REQUEST["id"], "complex");
$account_details = $data->getaccount_details();
$product_details = $data->getproduct_details();
$terms_conditions = $data->getterms_conditions();
$annexures = $data->getannexures();
$quotation_summary = $data->getquotation_summary();
$email = $data->getemail();
?>


<div class="view">
	<div class="innerview">
   	<p align="right"><a href="#" rel="add_comment" class="des adds">Add comments</a> <a href="#" rel="view_comment" class="des views">View comments</a><img src="/crm/quotation/images/pdf.jpg"/></p>
   	
    <?php echo $account_details;?>
    <?php echo $product_details;?>
    <?php echo $terms_conditions;?>
    <?php echo $annexures;?>
    <?php echo $quotation_summary;?>
    <?php echo $email;?>
    	
    </div>
</div>

<div class="comments">
        <div class="add_comment">   
        <form name="comment_form" id="comment_form">  
        	<p class="title">Add a Comment</p>   
            <fieldset>
                <label>Assign to: </label>
                <select name="assign_to" id="assign_to"></select><button name="select" value="">Select</button>
            </fieldset>
            <fieldset>
                <label>Comment: </label><textarea name="comment_text" id="comment_text">Add your comment here</textarea>
            </fieldset> 
            <fieldset>
                <label>&nbsp;</label>
                <input type='hidden' name='url' value='quotation/view_complex' />
                <button type="submit" name="Comment" id="Comment" value="Comment">Submit</button>
            </fieldset>   
		</form>
		<script language=JavaScript type=text/javascript xml:space=preserve>
    	var frmvalidator  = new Validator("comment_form");
		frmvalidator.addValidation("assign_to","req","Please select Assign to");
		frmvalidator.addValidation("comment_text","req","Please enter Comment");
		frmvalidator.addValidation("comment_text","maxlen=1000","Maximum length for Comment is 255 characters.");
		</script>                     
        </div> 		
</div>